<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use DB;
use App\Http\Requests;
use App\Http\Controllers\Controller;

class HomeAddressController extends Controller
{

    public function getUpdate(Request $request)
    {
        // dd($request->all());
        // echo "string";die;
        $uname = session('name');
        DB::table('address')->where('user_name',$uname)->update(['status'=>'1']);
        $did = $request->only('did');
        $order = DB::table('address')->where('id',$did)->update(['status'=>'2']);
        echo 1;
        // $order->status = 2;
        // dd($order);

    }
    
}
